home *** CD-ROM | disk | FTP | other *** search
/ Medabots Cardz / Medabots CD Cardz Rokusho.bin / pc / assets / rokusho.dxr / 00308_Script_308 < prev    next >
Text File  |  2001-12-07  |  2KB  |  38 lines

  1. property myFile, useronlinee, resetscore
  2. global gotobrassurl, squam, thescore, gNetID, jumbo, beginscore
  3.  
  4.  
  5. on mouseUp me
  6.   --fez 7:12:01 amended to make the game work move on when fininshed
  7.   --useronline = (the environment).internetConnected 
  8.   --if useronline = #online then
  9.   
  10.   if objectP(myFile) then set myFile = 0  --Delete the instance if it already exists
  11.   myFile = new(xtra "fileio")    -- Create an instance of FileIO
  12.   --  openFile (myFile, the moviePath &"info.txt",0)--Open the file with R/W access  
  13.   openFile (myFile, squam&"infor.txt",0)--Open the file with R/W access  
  14.   delete(myFile) --deletes the file
  15.   --  createFile (myFile, the moviePath &"info.txt") --creates the file again
  16.   createFile (myFile, squam&"infor.txt") --creates the file again
  17.   --  openFile(myFile,the moviePath &"info.txt",0) --Open the file with R/W access
  18.   openFile(myFile, squam&"infor.txt",0) --Open the file with R/W access
  19.   --  mySaveString = thescore --puts the contents of the field 'input' into the variable mySaveString
  20.   resetscore = 0
  21.   put resetscore into member("holdscore")
  22.   mySaveString = member("holdscore").text
  23.   writeString(myFile,mySaveString) --writes text to the file
  24.   
  25.   closeFile(myFile) -- Close the file 
  26.   myFile = 0 -- Dispose of the instance
  27.   if beginscore = 100 then
  28.     beginscore = 0
  29.   end if
  30.   
  31.   goToNetPage gotobrassurl, "_new"  
  32.   go to frame "instructions_game"
  33. --else
  34. --set the blend of member("statusreport")=100
  35. --end if
  36. end
  37.  
  38.